<%--
  Created by IntelliJ IDEA.
  User: xlro
  Date: 2021/4/23
  Time: 0:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        .demo-class {
            text-shadow: 0 0 0 #fff;
            color: black;
            font-size: 4px;
            shade: 0.8 '#393D49';
        }
    </style>
</head>
<body >

<%  request.setCharacterEncoding("utf-8");
    String message = request.getParameter("message");
    String title = request.getParameter("title");
    int time = Integer.parseInt(request.getParameter("time")!=null?request.getParameter("time"):"10000");
    int random = (int) (Math.random()*6+1);
    if(message != null && !message.equals("") && title!=null && !title.equals("")){
%>
    <script type="text/javascript" src="/layui/layui.all.js "></script>
    <script>
        layui.use('layer', function(){
        var layer = layui.layer;
            layer.open({
                title: '<%=title+random%>'
                ,content: '<%=message%>',
                skin: 'demo-class',
                shade: [0.6, '#141414'],
                time: '<%=time%>',
                anim: '<%=random%>'
            });
            layer.config({
                skin: 'demo-class'
            })

    });

    </script>
<%
    }
%>
</body>
</html>
